When I close my MacBook Pro in the evening, and then open it in the morning, the display is illuminated and the apple is bright but nothing is happening. So I need to push the power button to restart it. When it restarts, Google Chrome crashes and `virtualenv` is logged out. 

I thought that the problem is with hibernation so I set the hibernation to 0 in `pmset`. My current `pmset` parameters are as follows:

```
 standbydelay         10800
 standby              1
 womp                 1
 halfdim              1
 hibernatefile        /var/vm/sleepimage
 powernap             1
 gpuswitch            2
 networkoversleep     0
 disksleep            10
 sleep                1
 autopoweroffdelay    86400
 hibernatemode        0
 autopoweroff         1
 ttyskeepawake        1
 displaysleep         10
 acwake               0
 lidwake              1

2018-10-05 12:50:03 -0700 Assertion status system-wide: BackgroundTask 0 ApplePushServiceTask 0 UserIsActive 1 

PreventUserIdleDisplaySleep 0 PreventSystemSleep 0 ExternalMedia 0 PreventUserIdleSystemSleep 0 NetworkClientActive 0

Listed by owning process: pid 94(hidd): [0x0000000e00098030] 00:00:00 

UserIsActive named:"com.apple.iohideventsystem.queue.tickle.4294968174.3" Timeout will fire in 600 secs Action=TimeoutActionRelease pid 188(mds_stores): [0x00000115000b80fd] 00:00:00 

BackgroundTask named: "com.apple.metadata.mds_stores.power" 

Kernel Assertions: 0x100=MAGICWAKE id=503 level=255 0x100=MAGICWAKE mod=31.12.1969, 16:00 description=en0 owner=en0 

Idle sleep preventers: IODisplayWrangler

```

If I close the lid shortly everything is okay. Any ideas on what is going on?