Warn about improper defer; fix #26